var app = angular.module('indexApp', ['ui.router']);

// 搭建路由
app.config(['$stateProvider', '$urlRouterProvider',function($stateProvider, $urlRouterProvider) {
	// 配置默认路径
	$urlRouterProvider.when('', '/selected');
	// 配置一级路径
	$stateProvider.state('selected', {
		url: '/selected',
		templateUrl: './selected/selected.html'
	}).state('finance', {
		url: '/finance',
		templateUrl: './finance/finance.html'
	}).state('white', {
		url: '/white',
		templateUrl: './white/white.html'
	}).state('crowdFunding', {
		url: '/crowdFunding',
		templateUrl: './crowdFunding/crowdFunding.html'
	}).state('mine', {
		url: '/mine',
		templateUrl: './mine/mine.html',
	}).state('login',{
		url:'/login',
		templateUrl:'./mine/login.html'
	})
}])


